package com.example.barrage.model;

public class BarrageMessage {

    private String userId;
    private String username;
    private String content;
    private String timestamp;
    private String color;
    private int fontSize;
    private String position;

    public BarrageMessage() {
    }

    public BarrageMessage(String userId, String username, String content) {
        this.userId = userId;
        this.username = username;
        this.content = content;
        this.color = "#FFFFFF";
        this.fontSize = 16;
        this.position = "normal";
    }

    // Getters and Setters

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @Override
    public String toString() {
        return "BarrageMessage{" +
                "userId='" + userId + '\'' +
                ", username='" + username + '\'' +
                ", content='" + content + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", color='" + color + '\'' +
                ", fontSize=" + fontSize +
                ", position='" + position + '\'' +
                '}';
    }
}